package Mangos::DB::Mangos::PoolPool;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'pool_pool',

    columns => 
    [
        pool_id     => { type => 'integer', not_null => 1 },
        mother_pool => { type => 'integer', not_null => 1 },
        chance      => { type => 'float', default => '0', not_null => 1, precision => 32 },
        description => { type => 'varchar', length => 255, not_null => 1 },
    ],

    primary_key_columns => [ 'pool_id', 'mother_pool' ],
);

1;

package Mangos::DB::Mangos::PoolPool::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::PoolPool' }

__PACKAGE__->make_manager_methods('pool_pool');

1;
